{layout name="public:layout" /}
<table class="table table-hover">
    <thead class="thead-dark">
    <tr class="text-center">
        <td>ID</td>
        <td>栏目名称</td>
        <td>排序</td>
        <td>状态</td>
        <td>注册时间</td>
        <td colspan="2">操作</td>
    </tr>
    </thead>
    <thbody>
        {volist name="$cateList" id="cate" empty="$empty"}
        <tr class="text-center">
            <td>{$cate.id}</td>
            <td>{$cate.name}</td>
            <td>{$cate.sort}</td>
            <td>{$cate.status}</td>
            <td>{$cate.create_time}</td>
            <td><a href="{:url('cate/cateEdit',['id'=>$cate.id])}">编辑</a></td>
            <td><a href="{:url('cate/deleteCate',['id'=>$cate.id])}">删除</a></td>

        </tr>
        {/volist}
        <a href="{:url('cate/cateAdd')}" class="btn btn-info" role="button">添加分类</a>
    </thbody>
</table>